package net.xconcepts.stockdata.model.analysis.symbol;

/**
 * Contains meta information regarding a stock, should not contain any non permament informaiton
 * such as prices, etc. Should not be used
 * @author Steven
 *
 */
public final class Symbol {
	
	public final String symbolName;
	public final Industry industry;
	
	Symbol(String symbol, Industry industry) {
		this.symbolName = symbol;
		this.industry = industry;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((symbolName == null) ? 0 : symbolName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Symbol other = (Symbol) obj;
		if (symbolName == null) {
			if (other.symbolName != null)
				return false;
		} else if (!symbolName.equals(other.symbolName))
			return false;
		return true;
	}
	
	
	
	public enum Industry {
		
	}
}
